<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@include file="/pageRc/common/common.jsp"%>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
	<meta name="format-detection" content="telephone=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="mobile-web-app-capable" content="yes">
	<meta name="msapplication-tap-highlight" content="no">
	<script type="text/javascript" src="<%=commonPath %>/pageRc/js/jquery-1.9.1.min.js"></script> 
 　	<link rel="stylesheet" href="<%=commonPath %>/pageRc/layui/css/layui.css" media="all">
　　　<script type="text/javascript" src="<%=commonPath %>/pageRc/common/utils.js"></script>
	<script type="text/javascript" src="<%=commonPath %>/pageRc/common/msgTool.js"></script>
	<script type="text/javascript" src="<%=commonPath %>/pageRc/layui/layui.js"></script>　
	<title>联信科技报工平台-登陆</title> 
	<script type="text/javascript">　
	var ua = navigator.userAgent.toLowerCase();
	if(ua.match(/MicroMessenger/i)=="micromessenger") {//微信
	  if('${wechatUrl}'!="0"){
		  window.location.href = "${wechatUrl}";
	  }
	}
	var path = "<%=commonPath%>";
	var msg =new msgTool();
  
	$(function(){ 
		var phoneNo = localStorage.getItem("phoneNo");
		if(phoneNo !=null && phoneNo !=undefined){
			$("#phoneNo").val(phoneNo);
		}
	})
	function back(){
		  WeixinJSBridge.call('closeWindow');
	}
	</script>
</head>
<body> 
  
 
<div class="main layui-clear">

  <div class="fly-panel fly-panel-user" pad20>
    <div class="layui-tab layui-tab-brief">
      <ul class="layui-tab-title">
        <li class="layui-this">登陆</li>
       </ul>
      <div class="layui-form layui-tab-content" id="LAY_ucm" style="padding:1.5rem "   >
        <div class="layui-tab-item layui-show">
          <div class="layui-form layui-form-pane">
          ${msg}
            <form method="post" action= "<%=commonPath%>/page/base/dologin.do">
              <div class="layui-form-item">
                <label for="L_phone_no" class="layui-form-label">手机号</label>
                <div class="layui-input-block">
                  <input type="hidden" id="openid" name="openid" value="${openid}">
                  <input type="text" id="phoneNo" name="phoneNo" required lay-verify="required" autocomplete="off" class="layui-input">
                </div>
              </div>   
                
              <div class="layui-form-item"> 
                <button class="layui-btn" lay-filter="formLogin" lay-submit>立即登录</button>
                <a class="layui-btn"   href="<%=commonPath%>/page/sys/regUser.do" style="background-color:#f7b824"  >用户注册</a>
               
              </div> 
                 <div class="layui-form-item">
                 
                 	 <blockquote class="layui-elem-quote">
                  		关于报工填报规则：</br>
							1、团队除团队经理、QA岗位外都需要填报。</br>
							2、原则上每人每天填报一次。</br>
							3、当天有实际投入参与一个需求，报一条记录，参与多个需求则报多条记录。</br>
							4、每天最多不能超过12小时工作量，原则上每天标准为8小时。</br>
							5、休假时间填报休假事项，上线次日调休，调休时段也按休假事项填报。</br>
							6、新需求由项目经理录入相关信息。</br>
							7、需遵循实际情况填报。</br>
							8、新员工直接可使用【企业微信】中注册的手机号码登录。(每日17点同步相关信息)</br>
                     </blockquote>
                 </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>

</div>


<script> 

layui.use('form',function(){
	debugger;
	var form = layui.form();
	form.on('submit(formLogin)',function(data){
		  localStorage.setItem("phoneNo",data.field.phoneNo);
 		return true;  
	});
	form.on('submit(userReg)',function(data){
		   
	});	
});
</script>
</body>
</html>